package graph.undirectedgraph.algraph;

/**
 * 顶点节点
 */
public class VexNode {
    private String data;
    private EdgeNode firstEdge;

    public VexNode() {
    }

    public VexNode(String data) {
        this.data = data;
    }

    public VexNode(String data, EdgeNode firstEdge) {
        this.data = data;
        this.firstEdge = firstEdge;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public EdgeNode getFirstEdge() {
        return firstEdge;
    }

    public void setFirstEdge(EdgeNode firstEdge) {
        this.firstEdge = firstEdge;
    }
}
